<?php
 
class PhpFox_Mod_Site_ComponentPageList extends BaseComponent
{
	function process()
	{
		$oSrvPage = &$this->_oModule->getService('Page');
		$oReq = &App::getRequest();	
	
		if ( $iId = $oReq->get('delete') )
		{
			$bIsDeleted = $oSrvPage->_deletePage($iId);
		}
		
		$this->oTpl->assign(array
		(
			'aPages' => $oSrvPage->_getPages(),
			'bIsDeleted' => (isset($bIsDeleted) ? $bIsDeleted : ''),
		));	
	
		return $this->oTpl->fetch('PageList.html');
	}
}

?> 
